package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.victor.entity.ticketorder.OrderUserInfo;

@Mapper
public interface OrderuserDao {
	/**
	 * 添加
	 * @param orderUserInfo
	 * @return
	 */
	boolean insert(OrderUserInfo orderUserInfo);
	/**
	 * 删除
	 * @param ids
	 * @return
	 */
	boolean delete(int[] ids);
	/**
	 * 修改信息
	 * @param orderUserInfo
	 * @return
	 */
	boolean update(OrderUserInfo orderUserInfo);
	/**
	 * 根据uid查询
	 * @param uid
	 * @return
	 */
	@Select({"select * from t_orderuserinfo where uid=#{uid}"})
	List<OrderUserInfo> selAllByUid(String uid);
	/**
	 * 设为默认
	 * @param id
	 * @param uid
	 * @return
	 */
	boolean updateMoren(@Param("id")String id,@Param("uid") String uid);

}
